package com.survey.dao.mapper;

import com.survey.pojo.data.SurveyDO;
import com.survey.pojo.vo.SurveyVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/** 
 * <br/>
 * Created by survey on 2018/08/03
 */
@Repository
public interface SurveyMapper {

    Integer addSurvey(SurveyVO surveyVO);

    Integer updateSurvey(SurveyVO surveyVO);

    SurveyDO findDetailSurvey(SurveyVO surveyVO);

    List<SurveyDO> listSurvey(SurveyVO surveyVO);

    List<SurveyDO> listSurvey();

    List<SurveyDO> listSurvey1();

    List<SurveyDO> listBytime();

    List<SurveyDO> listSurveyPage(SurveyVO surveyVO);

    Integer countSurvey(SurveyVO surveyVO);
    Integer countSurvey1();

    Integer deleteSurvey(SurveyVO surveyVO);

    List<SurveyVO> listAllSurvey();

    List<SurveyDO> listhotsurvey();
    Integer countStudent(SurveyVO surveyVO);

    SurveyDO privateSurveyShow(String sid);

    List<SurveyDO> listSurveyisopen1(SurveyVO surveyVO);

    List<SurveyDO> listSurvey1(SurveyVO query);

    SurveyDO find(String name);

}
